package kr.re.etri.snsenabler.shared;

import java.io.Serializable;
import java.util.List;


import com.sencha.gxt.data.shared.TreeStore;

public class SocialServiceTreeData implements Serializable, TreeStore.TreeNode<SocialServiceTreeData> {

	private Integer id;
	private SocialServiceProvider socialService;
	private boolean isUsing;

	public SocialServiceTreeData() {
		super();
	}

	public SocialServiceTreeData(Integer id, SocialServiceProvider socialService, boolean isUsing) {
		super();
		this.id = id;
		this.socialService = socialService;
		this.isUsing = isUsing;
	}

	@Override
	public List<SocialServiceTreeData> getChildren() {
		return null;
	}

	@Override
	public SocialServiceTreeData getData() {
		return this;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public SocialServiceProvider getSocialService() {
		return socialService;
	}

	public void setSocialService(SocialServiceProvider socialService) {
		this.socialService = socialService;
	}

	public boolean isUsing() {
		return isUsing;
	}

	public void setUsing(boolean isUsing) {
		this.isUsing = isUsing;
	}

	public String getName() {
		return socialService.getName();
	}

	public String getTitle() {
		return socialService.getTitle();
	}
}
